package responsibility.practice_02;

/**
 * @author yi qiang
 * @date 2021/6/21 22:15
 */
public class ViceSchoolMasterApprover extends Approver{

    protected ViceSchoolMasterApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest purchaseRequest) {
        if(purchaseRequest.getPrice()>10000f&&purchaseRequest.getPrice()<=30000f){
            System.out.println("请求编号为："+purchaseRequest.getId()+" ,被"+super.name+"审核");
        }else {
            approver.processRequest(purchaseRequest);
        }
    }
}
